package com.risesoftware.battlebugs;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainMenuActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button start = (Button)this.findViewById(R.id.button1);
        start.setOnClickListener(new View.OnClickListener()
		{
			
			public void onClick(View v)
			{
				Intent i = new Intent(v.getContext(), BattlebugsActivity.class);
				startActivity(i);		
			}
		});
        
        Button Settings = (Button)this.findViewById(R.id.button2);
        Settings.setOnClickListener(new View.OnClickListener()
		{
			
			public void onClick(View v)
			{				
				Intent i = new Intent(v.getContext(), ActivityPreferences.class);
				startActivity(i);
			}
		});
        
        Button help = (Button)this.findViewById(R.id.button3);
        help.setOnClickListener(new View.OnClickListener()
		{
			
			public void onClick(View v)
			{
				Intent i = new Intent(v.getContext(), ActivityBattleShipHelp.class);
				startActivity(i);
				
			}
		});
        Button about = (Button)this.findViewById(R.id.button4);
        about.setOnClickListener(new View.OnClickListener()
		{
			
			public void onClick(View v)
			{
				Intent i = new Intent(v.getContext(), about.class);
				startActivity(i);
				
			}
		});
        

    }

	@Override
	protected void onResume()
	{
		// TODO Auto-generated method stub
		super.onResume();
	}
    
}